import { GET_RESOURCE_TABLE, } from '../actionType.js'

const initState = {
    resourceTable: [],
}

const home = (state = initState, action) => {
    let newState = JSON.parse(JSON.stringify(state))

    switch (action.type) {
        case GET_RESOURCE_TABLE:
            newState.resourceTable = action.data
            break;
        default:
            break;
    }
    return newState
}

export default home